
<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;

$_OBJECT_IFACE_PANEL = _app_create_iface_panel ();
$_OBJECT_IFACE_DISPLAY->insert_container ($_OBJECT_IFACE_PANEL);

$indexes = array (
	last=>array (label=>"First",order=>"DEFAULT",wrapper=>"vmc_icon_profile"),
	first=>array (label=>"Last",order=>"DEFAULT"),
	name=>array (label=>"User ID",order=>"DEFAULT",wrapper=>"vmc_icon_user"),
	email=>array (label=>"Email",order=>"DEFAULT",wrapper=>"vmc_icon_mail"),
	phone_1=>array (label=>"Phone",order=>"DEFAULT",wrapper=>"vmc_icon_phone"),
	city=>array (label=>"City",order=>"DEFAULT"),
	image=>array (label=>"Image",order=>"DEFAULT",
			callback=>"_template_list_image_value",
			path=>_GLOBAL_URI_PATH . "/img/pics/{$_REQUEST["user_id"]}",
			scale=>"50x40"),
);

$object_ctl = "/admin/accounts/users/fs_users.php?fs_action=view&fs_tab=main&";
$link_options = "";
$list_options = array (
	array (
		label=>"Add An Account",
		link=>"fs_users.php?fs_action=addnew"
	),
);

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
                db_conn=>$_GLOBAL_DBH,
                indexes=>$indexes,
		list_count=>"SELECT COUNT(*) FROM users",
		list_select=>"SELECT *,id AS image FROM users, profiles WHERE id=uid",
                list_id=>"lc_user_users",
                list_options=>$list_options,
                primary_key=>"id",
                primary_relation=>"user_id",
                link_options=>$link_options,
                object_ctl=>$object_ctl
));


$_OBJECT_IFACE_PANEL->insert_container ($_OBJECT_IFACE_LIST);

?>
